import request from '@/utils/request'

export function getPageOrder(data) {
  return request({
    url: '/user/order/getPageOrder',
    method: 'post',
    data
  })
}

export function cancelOrder(params) {
    return request({
      url: '/user/order/cancelOrder',
      method: 'get',
      params
    })
}

export function updateDeliveryTime(data) {
    return request({
      url: '/user/order/updateDeliveryTime',
      method: 'post',
      data
    })
  }

export function deleteOrderInfo(params) {
    return request({
      url: '/user/order/deleteOrderInfo',
      method: 'get',
      params
    })
}

export function getOneOrder(data) {
  return request({
    url: '/user/order/getOneOrder',
    method: 'post',
    data
  })
}

export function payByPoint(params) {
  return request({
    url: '/user/order/payByPoint',
    method: 'get',
    params
  })
}